package com.xian.gaoxiao.model;

import java.util.List;

public class TaskItem {

	private Integer id;
	private Long createDate;
	private Long alertDate;
	private Integer enableAlert; // 0不可用 1可用
	private Long beginDate;
	private Long finishDate;
	private Long modifyDate;
	private Integer status; // default 0 ， 0未完成 1已完成
							// 2正在进行 3暂停 4取消
	private String title;
	private Integer rank;
	private Integer sort; // default 0
	private String data;
	private byte[] pic;
	private String sound;

	private List<TaskComment> commentList;

	public TaskItem() {
		super();
	}

	public TaskItem(Integer id, Long createDate, Long alertDate,
			Integer enableAlert, Long beginDate, Long finishDate,
			Long modifyDate, Integer status, String title, Integer rank,
			Integer sort, String data, byte[] pic, String sound,
			List<TaskComment> commentList) {
		super();
		this.id = id;
		this.createDate = createDate;
		this.alertDate = alertDate;
		this.enableAlert = enableAlert;
		this.beginDate = beginDate;
		this.finishDate = finishDate;
		this.modifyDate = modifyDate;
		this.status = status;
		this.title = title;
		this.rank = rank;
		this.sort = sort;
		this.data = data;
		this.pic = pic;
		this.sound = sound;
		this.commentList = commentList;
	}
	
	public TaskItem(Long alertDate,
			Integer enableAlert, Long beginDate, Long finishDate,
			String title, Integer rank,
			 String data, byte[] pic, String sound) {
		super();
		this.alertDate = alertDate;
		this.enableAlert = enableAlert;
		this.beginDate = beginDate;
		this.finishDate = finishDate;
		this.title = title;
		this.rank = rank;
		this.data = data;
		this.pic = pic;
		this.sound = sound;
		this.commentList = commentList;
	}
	
	
	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Long createDate) {
		this.createDate = createDate;
	}

	public Long getAlertDate() {
		return alertDate;
	}

	public void setAlertDate(Long alertDate) {
		this.alertDate = alertDate;
	}

	public Integer getEnableAlert() {
		return enableAlert;
	}

	public void setEnableAlert(Integer enableAlert) {
		this.enableAlert = enableAlert;
	}

	public Long getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Long beginDate) {
		this.beginDate = beginDate;
	}

	public Long getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(Long finishDate) {
		this.finishDate = finishDate;
	}

	public Long getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Long modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public byte[] getPic() {
		return pic;
	}

	public void setPic(byte[] pic) {
		this.pic = pic;
	}

	public String getSound() {
		return sound;
	}

	public void setSound(String sound) {
		this.sound = sound;
	}

	public List<TaskComment> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<TaskComment> commentList) {
		this.commentList = commentList;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub

		return id + ":" + createDate + ":" + alertDate + ":" + enableAlert
				+ ":" + beginDate + ":" + finishDate + ":" + modifyDate + ":"
				+ status + ":" + title + ":" + rank + ":" + sort + ":" + ":"
				+ data + ":" + sound ;
	}

}
